﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace eProject.Web.UI
{
    public partial class Rewrite : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                lblDetails.Text = "<h1>Hello from Rewrite.aspx!</h1><br/><br/>";

            }
            else
            {
                lblDetails.Text = "<h1>Post-back to Rewrite.aspx!</h1><br/><br/>";

            }


            foreach (string Query in Request.QueryString.Keys)
            {
                lblDetails.Text += "PARAMETER: " + Query + "=" + Request.QueryString[Query] + "<br/>";
            }

            lblDetails.Text += "<br/><br/>Request URL: " + Request.RawUrl;
        }
    }
}